package org.darkforest.model;

import org.darkforest.common.util.Page;

import java.io.Serializable;
import java.util.List;

public class GoodsClass extends Page<GoodsClass> implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer gcId;

    private String gcName;

    private Integer typeId;

    private String typeName;

    private Integer gcParentId;

    private Integer gcChildrenId;  // 如有有子节点就设为1， 否则设为 0

    private Float commisRate;  //一级佣金比例

    private Float commisRateSecond; //二级佣金比例

    private Integer gcSort;

    private String gcTitle;

    private String gcKeywords;

    private String gcDescription;

    private String gcImg;

    private String AdvImg;

    public String getAdvImg() {
        return AdvImg;
    }

    public void setAdvImg(String advImg) {
        AdvImg = advImg;
    }

    public GoodsClass(){

    }

    public GoodsClass(Integer gcParentId){
        this.gcParentId = gcParentId;
    }

    public GoodsClass(Integer gcParentId,boolean pageSwitch){
        this.gcParentId = gcParentId;
        this.setPageSwitch(pageSwitch);
    }

    public String getGcImg() {
        return gcImg;
    }

    public void setGcImg(String gcImg) {
        this.gcImg = gcImg;
    }

    public Integer getGcId() {
        return gcId;
    }

    public void setGcId(Integer gcId) {
        this.gcId = gcId;
    }

    public String getGcName() {
        return gcName;
    }

    public void setGcName(String gcName) {
        this.gcName = gcName == null ? null : gcName.trim();
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public Integer getGcParentId() {
        return gcParentId;
    }

    public void setGcParentId(Integer gcParentId) {
        this.gcParentId = gcParentId;
    }

    public Integer getGcChildrenId() {
        return gcChildrenId;
    }

    public void setGcChildrenId(Integer gcChildrenId) {
        this.gcChildrenId = gcChildrenId;
    }

    public Float getCommisRate() {
        return commisRate;
    }

    public void setCommisRate(Float commisRate) {
        this.commisRate = commisRate;
    }

    public Integer getGcSort() {
        return gcSort;
    }

    public void setGcSort(Integer gcSort) {
        this.gcSort = gcSort;
    }

    public String getGcTitle() {
        return gcTitle;
    }

    public void setGcTitle(String gcTitle) {
        this.gcTitle = gcTitle == null ? null : gcTitle.trim();
    }

    public String getGcKeywords() {
        return gcKeywords;
    }

    public void setGcKeywords(String gcKeywords) {
        this.gcKeywords = gcKeywords == null ? null : gcKeywords.trim();
    }

    public String getGcDescription() {
        return gcDescription;
    }

    public void setGcDescription(String gcDescription) {
        this.gcDescription = gcDescription == null ? null : gcDescription.trim();
    }

    /**
     * 商品分类子类
     */
    public List<GoodsClass> children;

    public List<GoodsClass> getChildren() {
        return children;
    }

    public void setChildren(List<GoodsClass> children) {
        this.children = children;
    }

    public Float getCommisRateSecond() {
        return commisRateSecond;
    }

    public void setCommisRateSecond(Float commisRateSecond) {
        this.commisRateSecond = commisRateSecond;
    }
}